<!DOCTYPE html>
<html>
  <head>
    <title>我的任务</title>
    <meta charset="utf-8">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">


    <link rel="stylesheet" href="__STATIC__/mobile/css/weui.min.css">
	<link rel="stylesheet" href="__STATIC__/mobile/css/jquery-weui.css">
    <link rel="stylesheet" href="__STATIC__/mobile/css/style.min.css">
    <link rel="stylesheet" href="__STATIC__/mobile/css/demos.css">
    <link rel="stylesheet" href="__STATIC__/mobile/css/main.css">
    <link rel="stylesheet" href="__STATIC__/mobile/css/iconfont.css">
    <style>
    	.navbar {
		    height: 50px;
		    color: #000;
		    background: #ffd966;
		    position: fixed;
		    top: 0;
		    left: 0;
		    right: 0;
		    z-index: 99;
		    display: -webkit-box;
		    display: -ms-flexbox;
		    overflow: hidden;
		}
		.navbar .nav-wrap-left {
		    height: 100%;
		    width: 25%;
		    line-height: 50px;
		}
		.navbar .nav-wrap-left .nav-btn {
		    padding-right: 0;
		}
		.navbar .nav-btn {
		    padding: 0 0 0 10%;
		   	width: 90%;
		   	height: 100%;
		    display: block;
		    color: #000;
		    font-size: 14px;
		}
		/*a:active, a:focus, a:hover, a:visited {
		    color: #bbb;
		}*/
		a, a:hover, del, ins, s, u {
		    text-decoration: none;
		}
		.barbtn, a, button, em, input, textarea {
		    -webkit-tap-highlight-color: rgba(255,0,0,0);
		}
		a {
		    color: #222!important;
		    text-decoration: none;
		    outline: 0;
		}
		.navbar .nav-title {
			width: 50%;
		    height: 100%;
		    overflow: hidden;
		    line-height: 50px;
		    text-align: center;
		    -webkit-box-flex: 1;
		    -ms-flex: 1;
		}
		.navbar .nav-wrap-right {
		    height: 100%;
		    width: 25%;
		    line-height: 50px;
		    text-align: right;
		}
		.filterbar .dropdown-toggle.active {
		    color: #179b16;
		}
		.icon-xuanzechengshi {
			font-size: 8px!important;
		}
		#joblist .list-item .salary span, #loadMore .list-item .salary span, #recommend-job .list-item .salary span {
		    color: #179b16;
		    font-size: .42rem;
		}
		.pic {
			width: 55px!important;
		}
		.pic img{
			width: 55px!important;
			height: 55px;
		}
		.filterbar .dropdown-wrapper {
		    position: absolute;
		    width: 100%;
		    z-index: inherit;
		}
		.filterbar .nav {
		    position: relative;
    		z-index: inherit;
		}
		.block {
			display: block;
		}
		.none {
			display: none;
		}
		.filterbar .nav {
		    display: -webkit-box;
		    display: -ms-flexbox;
		    background: #fff;
		    border-bottom: 1px solid #e5e5e5;
		    text-align: center;
		    height: .86rem;
		    line-height: .86rem;
		    -webkit-user-select: none;
		    font-size: 13px;
		    text-align: center;
		}
		.main {
			/*padding: 0!important;*/
			/*margin-top: 50px; */
			z-index: 9999999;
		}
		.filterbar .category-wrapper {
		    overflow: scroll;
		}
		.category-wrapper {
			max-height: 480px!important;
		}
		.building_item {
			width: 33.33%;
			height: auto;
			overflow: hidden;
			float: left;
			text-align: center;
			font-size: 15px;
		}
		#joblist .list, #loadMore .list, #recommend-job .list {
		     padding: 0 !important; 
		}
    </style>
  </head>

  <body ontouchstart style="background: #fff">
  	
  	<!-- <p>Time: <span id="time">下拉我试试</span></p> -->
    <div class="navbar">
      
		<div class="nav-title">我的任务</div>
		
    </div>
    <div class="main">
	    <div class="weui-tab">
	     	<div class="weui-navbar">
	        	<a class="weui-navbar__item weui-bar__item--on" href="#tab1">未完成</a>
	        	<a class="weui-navbar__item" href="#tab2">已完成</a>
	      	</div>
		    <div class="weui-tab__bd" style="padding-top:42px">
		        <div id="tab1" class="weui-tab__bd-item weui-tab__bd-item--active">
		         	<div id="joblist" style="min-height: 10px">
	        			<div class="shade" style="display: none;"></div>
			            <ul id="job-all" class="list demos-content-padded" style="min-height: 10px">
							<foreach name="job_list1" item="vo">
                            <a href="{:U('Mission_detail')}?id={$vo.id}&ac_time={$vo.create_time}" class="list-item clearfix">
			            	<li>
			                        <div class="building_item">
										{$vo.name}
			                        </div>
			                        <div class="building_item">
										{$vo.create_time|date='Y-m-d',###}
			                        </div>
        			               <div class="building_item">
                                        任务详情
			                        </div>
			           		</li>
                            </a>
							</foreach>
			            </ul>
	        		</div>
		        </div>
		        <div id="tab2" class="weui-tab__bd-item">
					<div id="joblist" style="min-height: 10px">
						<div class="shade" style="display: none;"></div>
						<ul id="job-all" class="list demos-content-padded" style="min-height: 10px">
							<foreach name="job_list" item="vo">
                            <a href="{:U('Mission_detail')}?id={$vo.id}&ac_time={$vo.create_time}" class="list-item clearfix">
								<li>
									<div class="building_item">
										{$vo.name}
									</div>
									<div class="building_item">
										{$vo.create_time|date='Y-m-d',###}
									</div>
									<div class="building_item">
                                        任务详情
									</div>
								</li>
                                </a>
							</foreach>
						</ul>
					</div>
		        </div>
		        
		    </div> 
	    </div>
    	<input type='hidden' class='is_zhuce' value='{$zhuce}'>
    </div>
   
	
    <script src="__STATIC__/mobile/js/jquery-2.1.4.js"></script>
    <!-- <script src="js/fastclick.js"></script> -->
    <script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
    <script>
  		$(function() {
            var is_zhuce = $('.is_zhuce').val();
            if(is_zhuce == 'need'){
                //alert('请先填写信息哦!');
                
                $.alert({
                  title: '提示',
                  text: '先注册才能查看此页面哦,是否现在就去注册?',
                  onOK: function () {
                    //点击确认
                    location.href="{:U('myInfo')}";
                  }
                });
            }
  			console.log(window.localStorage.mid);
		   	// $.showLoading();
		    // checkLogin();
		   
      //       var url1 = window.location.href;
	     //    console.log(url1);
	     //    $.ajax({
		    //     url: window.serverUrl+"weixinCtr/getWeiXinJSConfig.web",
		    //     data: {url: url1},
		    //     type: 'post',
		    //     success: function (data) {
		    //         console.log("success");
		    //         console.log(data);
		    //         // alert("success");
	     //           	wx.config({
	     //              	debug: false,
	     //              	appId: 'wx3a3ad1abba59e5e9',
	     //              	timestamp: data.reModel.timestamp,
	     //              	nonceStr: data.reModel.nonceStr,
	     //              	signature: data.reModel.signature,
	     //              	jsApiList: [
	     //                	'getLocation'
	     //              	]
	     //           	});
		    //     },
		    //     error: function (data) {
		    //     	console.log("false");
		    //         console.log(data);
		    //         alert(data.msg);
		    //     },
		    //     dataType: 'json',
		    // });
             listType();
  		});
    </script>
    <script src="__STATIC__/mobile/js/jquery-weui.js"></script>
    <script src="__STATIC__/mobile/js/pull-to-refresh.js"></script>
    <script src="__STATIC__/mobile/js/globalvariable.js"></script>
    <script src="__STATIC__/mobile/js/sose.js"></script>
    <script>
       
    </script>
  </body>
</html>
